8. Network Service Commands > 8.5 AT+CREG   Network registration

8.5
AT+CREG   Network registration
The AT+CREG command serves to verify the network registration status of the ME. For this purpose two types of URCs are available.
The AT+CREG read command returns the URC presentation mode <n> and an integer <stat> that shows the registration status of the ME. The location information elements <lac> and <ci> are returned only when <n>=2 and ME is registered to the network.
Syntax
Test Command  
Response(s)
+CREG: (list of supported<n>s)
Read Command  
Response(s)
Write Command  
Response(s)
Reference(s) 
PIN 
ASC0 
ASC1 
USB 
MUX1 
MUX2 
MUX3 
Charge 
Last 
GSM 07.07

Unsolicited Result Codes
URC 1
If <n>=1 and there is a change in the ME network registration status:
+CREG: <stat>
URC 2
If <n>=2 and there is a change in the ME network registration status or a change of the network cell:
+CREG: <stat>[, <lac>, <ci>]

Parameter Description
 
<n>(num)(&W)(&V)
[0](&F)
Disable +CREG URC
1
Enable URC +CREG:<stat> to report status of network registration
2
Enable URC +CREG:<stat>[,<lac>,<ci>] to report status of network regis­tration including location information. Optional parameters <lac> and <ci> will not be displayed during calls or if these values have not changed since last AT+CREG read command or since last indication by +CREG URC.
 
<stat>(num)(&V)
0
Not registered, ME is currently not searching for new operator
Normally, status 0 occurs temporarily between two network search phases (status 2). However, if it persists, one the following reasons may apply:
•
-
-
-
•
Manual network selection is active and the selected network is available, but login fails due to one of the following reasons:
-
-
-
In either case, user intervention is required. Yet, emergency calls can be made if any network is available.
1
Registered to home network
2
Not registered, but ME is currently searching for a new operator
The ME searches for an available network. Failure to log in until after more than a minute may be due to one of the following reasons:
•
•
•
-
-
-
After this, the search will be resumed (if automatic network search is enabled).
•
If at least one network is available, emergency calls can be made.
3
Registration denied
•
-
-
-
Either the SIM or the MS or the ME are unable to log into any network. No further attempt is made to search or log into a network. User intervention is required. Emergency calls can be made, if any network is available.
4
Unknown (not used)
5
Registered, roaming
The ME is registered at a foreign network (national or international network)
 
<lac>(str)
Two byte location area code in hexadecimal format (e.g. "00C3" equals 193 in decimal).
 
<ci>(str)
Two byte cell ID in hexadecimal format.


Note
•
After the "+CREG: 1" (or "+CREG: 5") URC and before the "^SSIM READY" URC it is not sure that outgoing and incoming calls can be made and short message functions executed. Emergency calls are possible.
Outgoing and incoming calls are always possible AFTER having received the "+CREG: 1" (or "+CREG: 5") and "^SSIM READY" URCs.
See also Section 23.1, Restricted access to SIM data after SIM PIN authentication.

Example